import request from '@/utils/request'

// b列表
export function fetchPriceList(data) {
	return request({
		url: '/premium/getList',
		method: 'POST',
		data: data
	})
}
// b加价添加加价
export function priceAddB(data) {
	return request({
		url: '/premium/create',
		method: 'POST',
		data: data
	})
}

// b加价详情
export function fetchPriceInfo(data) {
	return request({
		url: '/premium/getInfo',
		method: 'POST',
		data: data
	})
}

// b加价启用禁用
export function saveStatusB(data) {
	return request({
		url: '/premium/saveStatus',
		method: 'POST',
		data: data
	})
}

// C列表
export function fetchPriceListC(data) {
	return request({
		url: '/premiumC/getList',
		method: 'POST',
		data: data
	})
}
// C加价添加加价
export function priceAddC(data) {
	return request({
		url: '/premiumC/create',
		method: 'POST',
		data: data
	})
}
// C加价详情
export function fetchPriceInfoC(data) {
	return request({
		url: '/premiumC/getInfo',
		method: 'POST',
		data: data
	})
}
// C加价启用禁用
export function saveStatusC(data) {
	return request({
		url: '/premiumC/saveStatus',
		method: 'POST',
		data: data
	})
}

// 获取计价规则列表
export function fetchRulePriceList(data) {
  return request({
    url: '/prices/getList',
    method: 'POST',
    data: data
  })
}

// 添加加价规则
export function priceCreate(data) {
  return request({
    url: '/prices/create',
    method: 'POST',
    data: data
  })
}

// 修改加价规则
export function priceUpdate(data) {
  return request({
    url: '/prices/setInfo',
    method: 'POST',
    data: data
  })
}

// 禁用/启用加价规则
export function priceDisabled(data) {
  return request({
    url: '/prices/disable',
    method: 'POST',
    data: data
  })
}

// 获取平台服务费
export function getPlatformPrice(data) {
  return request({
    url: '/prices/getPlatformFee',
    method: 'POST',
    data: data
  })
}

// 获取店铺承担费用
export function getShopFee(data) {
  return request({
    url: '/prices/hintGetPrice',
    method: 'POST',
    data: data
  })
}



// WEBPACK FOOTER //
// ./src/api/price.js